Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework Design Time Build to use .aar files directly. #9423

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

dellis1972
Copy link
Contributor

@dellis1972 dellis1972 commented Oct 18, 2024

Context dotnet/maui#25207
Also

  1. Only import targets we actually need for a DTB
  2. re-order the targets to they run in the right places
  3. don't run targets we don't need to.
  4. move all design time files (as much as possible) to the designtime folder.

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972 dellis1972 marked this pull request as ready for review December 9, 2024 19:46
Comment on lines 73 to 75
<MSBuild
Projects="@(ProjectReference)"
Targets="Restore;_GetProjectResourceDirectory"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two questions here:

  1. Does this really need to run Restore?
  2. What happens if the @(ProjectReference) is a plain net9.0 project or something old like netstandard2.0 or PCL?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SkipNonexistentTargets="true" will make sure that we skip (and not error) any project which does not have the targets we are calling.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the Restore. But I have a feeling it will mean a unit test will fail. We shall see.

Comment on lines 90 to +93
<_AdditionalProperties>
_ComputeFilesToPublishForRuntimeIdentifiers=true
;SelfContained=true
;DesignTimeBuild=$(DesignTimeBuild)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the inner-build per RID run during a design-time build? Does it even need to?

It's doing stuff related to the trimmer & AOT, it seems like should figure out how to skip it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can test this and see.

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants